module ProductsHelper
  
  def get_merchant_from_product(product_id)
    product = Product.find(product_id)
    if !(product.nil?)
      return product.merchant
    else
      return nil
    end
  end
end
